//
//  YCAlert.h
//  YCAlert
//
//  Created by Stephan Cleaves on 4/2/07.
//  Copyright 2007 Yellow Camp Software. All rights reserved.
//
//  Freely licensed under the MIT License. See included license file for details.
//

#import <Cocoa/Cocoa.h>

enum { YCAlertPrimaryReturn, YCAlertAlternateReturn, YCAlertOtherReturn };

@interface YCAlert : NSObject {
    NSPanel *panel;
    NSImageView *imageView;
    NSTextField *messageField;
    NSTextField *informativeField;
    NSMutableArray *buttons;
    id _delegate;
    SEL _didEndSelector;
    void *_contextInfo;
}

- (NSButton *)addPrimaryButtonWithTitle:(NSString *)buttonTitle;
- (NSButton *)addAlternateButtonWithTitle:(NSString *)buttonTitle;
- (NSButton *)addOtherButtonWithTitle:(NSString *)buttonTitle;

- (void)beginModelessAlertWithDelegate:(id)delegate selector:(SEL)didEndSelector 
    contextInfo:(void *)contextInfo;

- (void)setInformativeText:(NSString *)informativeText;
- (NSString *)informativeText;
- (void)setMessageText:(NSString *)messageText;
- (NSString *)messageText;
- (void)setTitle:(NSString *)title;
- (NSString *)title;

@end
